<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">
<link href="style.css" type="text/css" rel="stylesheet">
<title>PMOVSX—Packed Move with Sign Extend </title></head>
<body>
<h1>PMOVSX—Packed Move with Sign Extend</h1>
<table>
<tr>
<th>Opcode/Instruction</th>
<th>Op /En</th>
<th>64/32 bit Mode Support</th>
<th>CPUID Feature Flag</th>
<th>Description</th></tr>
<tr>
<td>
<p>66 0f 38 20 /r</p>
<p>PMOVSXBW xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 8 packed 8-bit integers in the low 8 bytes of xmm2/m64 to 8 packed 16-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>66 0f 38 21 /r</p>
<p>PMOVSXBD xmm1, xmm2/m32</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 4 packed 8-bit integers in the low 4 bytes of xmm2/m32 to 4 packed 32-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>66 0f 38 22 /r</p>
<p>PMOVSXBQ xmm1, xmm2/m16</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 2 packed 8-bit integers in the low 2 bytes of xmm2/m16 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>66 0f 38 23/r</p>
<p>PMOVSXWD xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 4 packed 16-bit integers in the low 8 bytes of xmm2/m64 to 4 packed 32-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>66 0f 38 24 /r</p>
<p>PMOVSXWQ xmm1, xmm2/m32</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 2 packed 16-bit integers in the low 4 bytes of xmm2/m32 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>66 0f 38 25 /r</p>
<p>PMOVSXDQ xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>SSE4_1</td>
<td>Sign extend 2 packed 32-bit integers in the low 8 bytes of xmm2/m64 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 20 /r</p>
<p>VPMOVSXBW xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 8 packed 8-bit integers in the low 8 bytes of xmm2/m64 to 8 packed 16-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 21 /r</p>
<p>VPMOVSXBD xmm1, xmm2/m32</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 4 packed 8-bit integers in the low 4 bytes of xmm2/m32 to 4 packed 32-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 22 /r</p>
<p>VPMOVSXBQ xmm1, xmm2/m16</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 2 packed 8-bit integers in the low 2 bytes of xmm2/m16 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 23 /r</p>
<p>VPMOVSXWD xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 4 packed 16-bit integers in the low 8 bytes of xmm2/m64 to 4 packed 32-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 24 /r</p>
<p>VPMOVSXWQ xmm1, xmm2/m32</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 2 packed 16-bit integers in the low 4 bytes of xmm2/m32 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.128.66.0F38.WIG 25 /r</p>
<p>VPMOVSXDQ xmm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX</td>
<td>Sign extend 2 packed 32-bit integers in the low 8 bytes of xmm2/m64 to 2 packed 64-bit integers in xmm1.</td></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 20 /r</p>
<p>VPMOVSXBW ymm1, xmm2/m128</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 16 packed 8-bit integers in xmm2/m128 to 16 packed 16-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 21 /r</p>
<p>VPMOVSXBD ymm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 8 packed 8-bit integers in the low 8 bytes of xmm2/m64 to 8 packed 32-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 22 /r</p>
<p>VPMOVSXBQ ymm1, xmm2/m32</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 4 packed 8-bit integers in the low 4 bytes of xmm2/m32 to 4 packed 64-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 23 /r</p>
<p>VPMOVSXWD ymm1, xmm2/m128</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 8 packed 16-bit integers in the low 16 bytes of xmm2/m128 to 8 packed 32-bit integers in ymm1.</td></tr></table>
<table>
<tr>
<th>Opcode/Instruction</th>
<th>Op /En</th>
<th>64/32 bit Mode Support</th>
<th>CPUID Feature Flag</th>
<th>Description</th></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 24 /r</p>
<p>VPMOVSXWQ ymm1, xmm2/m64</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 4 packed 16-bit integers in the low 8 bytes of xmm2/m64 to 4 packed 64-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>VEX.256.66.0F38.WIG 25 /r</p>
<p>VPMOVSXDQ ymm1, xmm2/m128</p></td>
<td>RM</td>
<td>V/V</td>
<td>AVX2</td>
<td>Sign extend 4 packed 32-bit integers in the low 16 bytes of xmm2/m128 to 4 packed 64-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.WIG 20 /r</p>
<p>VPMOVSXBW xmm1 {k1}{z}, xmm2/m64</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512BW</p></td>
<td>Sign extend 8 packed 8-bit integers in xmm2/m64 to 8 packed 16-bit integers in zmm1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.WIG 20 /r</p>
<p>VPMOVSXBW ymm1 {k1}{z}, xmm2/m128</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512BW</p></td>
<td>Sign extend 16 packed 8-bit integers in xmm2/m128 to 16 packed 16-bit integers in ymm1.</td></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.WIG 20 /r</p>
<p>VPMOVSXBW zmm1 {k1}{z}, ymm2/m256</p></td>
<td>HVM</td>
<td>V/V</td>
<td>AVX512BW</td>
<td>Sign extend 32 packed 8-bit integers in ymm2/m256 to 32 packed 16-bit integers in zmm1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.WIG 21 /r</p>
<p>VPMOVSXBD xmm1 {k1}{z}, xmm2/m32</p></td>
<td>QVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 4 packed 8-bit integers in the low 4 bytes of xmm2/m32 to 4 packed 32-bit integers in xmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.WIG 21 /r</p>
<p>VPMOVSXBD ymm1 {k1}{z}, xmm2/m64</p></td>
<td>QVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 8 packed 8-bit integers in the low 8 bytes of xmm2/m64 to 8 packed 32-bit integers in ymm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.WIG 21 /r</p>
<p>VPMOVSXBD zmm1 {k1}{z}, xmm2/m128</p></td>
<td>QVM</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Sign extend 16 packed 8-bit integers in the low 16 bytes of xmm2/m128 to 16 packed 32-bit integers in zmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.WIG 22 /r</p>
<p>VPMOVSXBQ xmm1 {k1}{z}, xmm2/m16</p></td>
<td>OVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 2 packed 8-bit integers in the low 2 bytes of xmm2/m16 to 2 packed 64-bit integers in xmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.WIG 22 /r</p>
<p>VPMOVSXBQ ymm1 {k1}{z}, xmm2/m32</p></td>
<td>OVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 4 packed 8-bit integers in the low 4 bytes of xmm2/m32 to 4 packed 64-bit integers in ymm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.WIG 22 /r</p>
<p>VPMOVSXBQ zmm1 {k1}{z}, xmm2/m64</p></td>
<td>OVM</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Sign extend 8 packed 8-bit integers in the low 8 bytes of xmm2/m64 to 8 packed 64-bit integers in zmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.WIG 23 /r</p>
<p>VPMOVSXWD xmm1 {k1}{z}, xmm2/m64</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 4 packed 16-bit integers in the low 8 bytes of ymm2/mem to 4 packed 32-bit integers in xmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.WIG 23 /r</p>
<p>VPMOVSXWD ymm1 {k1}{z}, xmm2/m128</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 8 packed 16-bit integers in the low 16 bytes of ymm2/m128 to 8 packed 32-bit integers in ymm1 subject to writemask k1.</td></tr></table>
<table>
<tr>
<th>Opcode/Instruction</th>
<th>Op /En</th>
<th>64/32 bit Mode Support</th>
<th>CPUID Feature Flag</th>
<th>Description</th></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.WIG 23 /r</p>
<p>VPMOVSXWD zmm1 {k1}{z}, ymm2/m256</p></td>
<td>HVM</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Sign extend 16 packed 16-bit integers in the low 32 bytes of ymm2/m256 to 16 packed 32-bit integers in zmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.WIG 24 /r</p>
<p>VPMOVSXWQ xmm1 {k1}{z}, xmm2/m32</p></td>
<td>QVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 2 packed 16-bit integers in the low 4 bytes of xmm2/m32 to 2 packed 64-bit integers in xmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.WIG 24 /r</p>
<p>VPMOVSXWQ ymm1 {k1}{z}, xmm2/m64</p></td>
<td>QVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 4 packed 16-bit integers in the low 8 bytes of xmm2/m64 to 4 packed 64-bit integers in ymm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.WIG 24 /r</p>
<p>VPMOVSXWQ zmm1 {k1}{z}, xmm2/m128</p></td>
<td>QVM</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Sign extend 8 packed 16-bit integers in the low 16 bytes of xmm2/m128 to 8 packed 64-bit integers in zmm1 subject to writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.128.66.0F38.W0 25 /r</p>
<p>VPMOVSXDQ xmm1 {k1}{z}, xmm2/m64</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 2 packed 32-bit integers in the low 8 bytes of xmm2/m64 to 2 packed 64-bit integers in zmm1 using writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.256.66.0F38.W0 25 /r</p>
<p>VPMOVSXDQ ymm1 {k1}{z}, xmm2/m128</p></td>
<td>HVM</td>
<td>V/V</td>
<td>
<p>AVX512VL</p>
<p>AVX512F</p></td>
<td>Sign extend 4 packed 32-bit integers in the low 16 bytes of xmm2/m128 to 4 packed 64-bit integers in zmm1 using writemask k1.</td></tr>
<tr>
<td>
<p>EVEX.512.66.0F38.W0 25 /r</p>
<p>VPMOVSXDQ zmm1 {k1}{z}, ymm2/m256</p></td>
<td>HVM</td>
<td>V/V</td>
<td>AVX512F</td>
<td>Sign extend 8 packed 32-bit integers in the low 32 bytes of ymm2/m256 to 8 packed 64-bit integers in zmm1 using writemask k1.</td></tr></table>
<h3>Instruction Operand Encoding</h3>
<table>
<tr>
<td>Op/En</td>
<td>Operand 1</td>
<td>Operand 2</td>
<td>Operand 3</td>
<td>Operand 4</td></tr>
<tr>
<td>RM</td>
<td>ModRM:reg (w)</td>
<td>ModRM:r/m (r)</td>
<td>NA</td>
<td>NA</td></tr>
<tr>
<td>HVM, QVM, OVM</td>
<td>ModRM:reg (w)</td>
<td>ModRM:r/m (r)</td>
<td>NA</td>
<td>NA</td></tr></table>
<p><strong>Description</strong></p>
<p>Legacy and VEX encoded versions: Packed byte, word, or dword integers in the low bytes of the source operand (second operand) are sign extended to word, dword, or quadword integers and stored in packed signed bytes the destination operand.</p>
<p>128-bit Legacy SSE version: Bits (MAX_VL-1:128) of the corresponding destination register remain unchanged.</p>
<p>VEX.128 and EVEX.128 encoded versions: Bits (MAX_VL-1:128) of the corresponding destination register are zeroed.</p>
<p>VEX.256 and EVEX.256 encoded versions: Bits (MAX_VL-1:256) of the corresponding destination register are zeroed.</p>
<p>EVEX encoded versions: Packed byte, word or dword integers starting from the low bytes of the source operand (second operand) are sign extended to word, dword or quadword integers and stored to the destination operand under the writemask. The destination register is XMM, YMM or ZMM Register.</p>
<p>Note: VEX.vvvv and EVEX.vvvv are reserved and must be 1111b otherwise instructions will #UD.</p>
<p><strong>Operation</strong></p>
<p><strong>Packed_Sign_Extend_BYTE_to_WORD(DEST, SRC)</strong></p>
<p>DEST[15:0] (cid:197)SignExtend(SRC[7:0]);</p>
<p>DEST[31:16] (cid:197)SignExtend(SRC[15:8]);</p>
<p>DEST[47:32] (cid:197)SignExtend(SRC[23:16]);</p>
<p>DEST[63:48] (cid:197)SignExtend(SRC[31:24]);</p>
<p>DEST[79:64] (cid:197)SignExtend(SRC[39:32]);</p>
<p>DEST[95:80] (cid:197)SignExtend(SRC[47:40]);</p>
<p>DEST[111:96] (cid:197)SignExtend(SRC[55:48]);</p>
<p>DEST[127:112] (cid:197)SignExtend(SRC[63:56]);</p>
<p><strong>Packed_Sign_Extend_BYTE_to_DWORD(DEST, SRC)</strong></p>
<p>DEST[31:0] (cid:197)SignExtend(SRC[7:0]);</p>
<p>DEST[63:32] (cid:197)SignExtend(SRC[15:8]);</p>
<p>DEST[95:64] (cid:197)SignExtend(SRC[23:16]);</p>
<p>DEST[127:96] (cid:197)SignExtend(SRC[31:24]);</p>
<p><strong>Packed_Sign_Extend_BYTE_to_QWORD(DEST, SRC)</strong></p>
<p>DEST[63:0] (cid:197)SignExtend(SRC[7:0]);</p>
<p>DEST[127:64] (cid:197)SignExtend(SRC[15:8]);</p>
<p><strong>Packed_Sign_Extend_WORD_to_DWORD(DEST, SRC)</strong></p>
<p>DEST[31:0] (cid:197)SignExtend(SRC[15:0]);</p>
<p>DEST[63:32] (cid:197)SignExtend(SRC[31:16]);</p>
<p>DEST[95:64] (cid:197)SignExtend(SRC[47:32]);</p>
<p>DEST[127:96] (cid:197)SignExtend(SRC[63:48]);</p>
<p><strong>Packed_Sign_Extend_WORD_to_QWORD(DEST, SRC)</strong></p>
<p>DEST[63:0] (cid:197)SignExtend(SRC[15:0]);</p>
<p>DEST[127:64] (cid:197)SignExtend(SRC[31:16]);</p>
<p><strong>Packed_Sign_Extend_DWORD_to_QWORD(DEST, SRC)</strong></p>
<p>DEST[63:0] (cid:197)SignExtend(SRC[31:0]);</p>
<p>DEST[127:64] (cid:197)SignExtend(SRC[63:32]);</p>
<p><strong>VPMOVSXBW (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (8, 128), (16, 256), (32, 512)</p>
<p>Packed_Sign_Extend_BYTE_to_WORD(TMP_DEST[127:0], SRC[63:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_BYTE_to_WORD(TMP_DEST[255:128], SRC[127:64])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_BYTE_to_WORD(TMP_DEST[383:256], SRC[191:128])</p>
<p>Packed_Sign_Extend_BYTE_to_WORD(TMP_DEST[511:384], SRC[255:192])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 16</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+15:i] (cid:197) TEMP_DEST[i+15:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+15:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+15:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXBD (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (4, 128), (8, 256), (16, 512)</p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(TMP_DEST[127:0], SRC[31:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(TMP_DEST[255:128], SRC[63:32])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(TMP_DEST[383:256], SRC[95:64])</p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(TMP_DEST[511:384], SRC[127:96])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 32</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+31:i] (cid:197) TEMP_DEST[i+31:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+31:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+31:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXBQ (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (2, 128), (4, 256), (8, 512)</p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(TMP_DEST[127:0], SRC[15:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(TMP_DEST[255:128], SRC[31:16])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(TMP_DEST[383:256], SRC[47:32])</p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(TMP_DEST[511:384], SRC[63:48])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 64</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+63:i] (cid:197) TEMP_DEST[i+63:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+63:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+63:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXWD (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (4, 128), (8, 256), (16, 512)</p>
<p>Packed_Sign_Extend_WORD_to_DWORD(TMP_DEST[127:0], SRC[63:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_WORD_to_DWORD(TMP_DEST[255:128], SRC[127:64])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_WORD_to_DWORD(TMP_DEST[383:256], SRC[191:128])</p>
<p>Packed_Sign_Extend_WORD_to_DWORD(TMP_DEST[511:384], SRC[256:192])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 32</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+31:i] (cid:197) TEMP_DEST[i+31:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+31:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+31:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXWQ (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (2, 128), (4, 256), (8, 512)</p>
<p>Packed_Sign_Extend_WORD_to_QWORD(TMP_DEST[127:0], SRC[31:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_WORD_to_QWORD(TMP_DEST[255:128], SRC[63:32])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_WORD_to_QWORD(TMP_DEST[383:256], SRC[95:64])</p>
<p>Packed_Sign_Extend_WORD_to_QWORD(TMP_DEST[511:384], SRC[127:96])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 64</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+63:i] (cid:197) TEMP_DEST[i+63:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+63:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+63:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXDQ (EVEX encoded versions)</strong></p>
<p>(KL, VL) = (2, 128), (4, 256), (8, 512)</p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(TEMP_DEST[127:0], SRC[63:0])</p>
<p>IF VL &gt;= 256</p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(TEMP_DEST[255:128], SRC[127:64])</p>
<p>FI;</p>
<p>IF VL &gt;= 512</p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(TEMP_DEST[383:256], SRC[191:128])</p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(TEMP_DEST[511:384], SRC[255:192])</p>
<p>FI;</p>
<p>FOR j (cid:197) 0 TO KL-1</p>
<p>i (cid:197) j * 64</p>
<p>IF k1[j] OR *no writemask*</p>
<p>THEN DEST[i+63:i] (cid:197) TEMP_DEST[i+63:i]</p>
<p>ELSE</p>
<p>IF *merging-masking*</p>
<p>; merging-masking</p>
<p>THEN *DEST[i+63:i] remains unchanged*</p>
<p>ELSE *zeroing-masking*</p>
<p>; zeroing-masking</p>
<p>DEST[i+63:i] (cid:197) 0</p>
<p>FI</p>
<p>FI;</p>
<p>ENDFOR</p>
<p>DEST[MAX_VL-1:VL] (cid:197) 0</p>
<p><strong>VPMOVSXBW (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_WORD(DEST[127:0], SRC[63:0])</p>
<p>Packed_Sign_Extend_BYTE_to_WORD(DEST[255:128], SRC[127:64])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXBD (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(DEST[127:0], SRC[31:0])</p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(DEST[255:128], SRC[63:32])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXBQ (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(DEST[127:0], SRC[15:0])</p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(DEST[255:128], SRC[31:16])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXWD (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_WORD_to_DWORD(DEST[127:0], SRC[63:0])</p>
<p>Packed_Sign_Extend_WORD_to_DWORD(DEST[255:128], SRC[127:64])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXWQ (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_WORD_to_QWORD(DEST[127:0], SRC[31:0])</p>
<p>Packed_Sign_Extend_WORD_to_QWORD(DEST[255:128], SRC[63:32])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXDQ (VEX.256 encoded version)</strong></p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(DEST[127:0], SRC[63:0])</p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(DEST[255:128], SRC[127:64])</p>
<p>DEST[MAX_VL-1:256] (cid:197) 0</p>
<p><strong>VPMOVSXBW (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_WORDDEST[127:0], SRC[127:0]()</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>VPMOVSXBD (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>VPMOVSXBQ (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>VPMOVSXWD (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_WORD_to_DWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>VPMOVSXWQ (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_WORD_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>VPMOVSXDQ (VEX.128 encoded version)</strong></p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (cid:197)0</p>
<p><strong>PMOVSXBW</strong></p>
<p>Packed_Sign_Extend_BYTE_to_WORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>PMOVSXBD</strong></p>
<p>Packed_Sign_Extend_BYTE_to_DWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>PMOVSXBQ</strong></p>
<p>Packed_Sign_Extend_BYTE_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>PMOVSXWD</strong></p>
<p>Packed_Sign_Extend_WORD_to_DWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>PMOVSXWQ</strong></p>
<p>Packed_Sign_Extend_WORD_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>PMOVSXDQ</strong></p>
<p>Packed_Sign_Extend_DWORD_to_QWORD(DEST[127:0], SRC[127:0])</p>
<p>DEST[MAX_VL-1:128] (Unmodified)</p>
<p><strong>Intel C/C++ Compiler Intrinsic Equivalent</strong></p>
<p>VPMOVSXBW __m512i _mm512_cvtepi8_epi16(__m512i a);</p>
<p>VPMOVSXBW __m512i _mm512_mask_cvtepi8_epi16(__m512i a, __mmask32 k, __m512i b);</p>
<p>VPMOVSXBW __m512i _mm512_maskz_cvtepi8_epi16( __mmask32 k, __m512i b);</p>
<p>VPMOVSXBD __m512i _mm512_cvtepi8_epi32(__m512i a);</p>
<p>VPMOVSXBD __m512i _mm512_mask_cvtepi8_epi32(__m512i a, __mmask16 k, __m512i b);</p>
<p>VPMOVSXBD __m512i _mm512_maskz_cvtepi8_epi32( __mmask16 k, __m512i b);</p>
<p>VPMOVSXBQ __m512i _mm512_cvtepi8_epi64(__m512i a);</p>
<p>VPMOVSXBQ __m512i _mm512_mask_cvtepi8_epi64(__m512i a, __mmask8 k, __m512i b);</p>
<p>VPMOVSXBQ __m512i _mm512_maskz_cvtepi8_epi64( __mmask8 k, __m512i a);</p>
<p>VPMOVSXDQ __m512i _mm512_cvtepi32_epi64(__m512i a);</p>
<p>VPMOVSXDQ __m512i _mm512_mask_cvtepi32_epi64(__m512i a, __mmask8 k, __m512i b);</p>
<p>VPMOVSXDQ __m512i _mm512_maskz_cvtepi32_epi64( __mmask8 k, __m512i a);</p>
<p>VPMOVSXWD __m512i _mm512_cvtepi16_epi32(__m512i a);</p>
<p>VPMOVSXWD __m512i _mm512_mask_cvtepi16_epi32(__m512i a, __mmask16 k, __m512i b);</p>
<p>VPMOVSXWD __m512i _mm512_maskz_cvtepi16_epi32(__mmask16 k, __m512i a);</p>
<p>VPMOVSXWQ __m512i _mm512_cvtepi16_epi64(__m512i a);</p>
<p>VPMOVSXWQ __m512i _mm512_mask_cvtepi16_epi64(__m512i a, __mmask8 k, __m512i b);</p>
<p>VPMOVSXWQ __m512i _mm512_maskz_cvtepi16_epi64( __mmask8 k, __m512i a);</p>
<p>VPMOVSXBW __m256i _mm256_cvtepi8_epi16(__m256i a);</p>
<p>VPMOVSXBW __m256i  _mm256_mask_cvtepi8_epi16(__m256i a, __mmask16 k, __m256i b);</p>
<p>VPMOVSXBW __m256i _mm256_maskz_cvtepi8_epi16( __mmask16 k, __m256i b);</p>
<p>VPMOVSXBD __m256i _mm256_cvtepi8_epi32(__m256i a);</p>
<p>VPMOVSXBD __m256i _mm256_mask_cvtepi8_epi32(__m256i a, __mmask8 k, __m256i b);</p>
<p>VPMOVSXBD __m256i _mm256_maskz_cvtepi8_epi32( __mmask8 k, __m256i b);</p>
<p>VPMOVSXBQ __m256i _mm256_cvtepi8_epi64(__m256i a);</p>
<p>VPMOVSXBQ __m256i _mm256_mask_cvtepi8_epi64(__m256i a, __mmask8 k, __m256i b);</p>
<p>VPMOVSXBQ __m256i _mm256_maskz_cvtepi8_epi64( __mmask8 k, __m256i a);</p>
<p>VPMOVSXDQ __m256i _mm256_cvtepi32_epi64(__m256i a);</p>
<p>VPMOVSXDQ __m256i _mm256_mask_cvtepi32_epi64(__m256i a, __mmask8 k, __m256i b);</p>
<p>VPMOVSXDQ __m256i _mm256_maskz_cvtepi32_epi64( __mmask8 k, __m256i a);</p>
<p>VPMOVSXWD __m256i _mm256_cvtepi16_epi32(__m256i a);</p>
<p>VPMOVSXWD __m256i _mm256_mask_cvtepi16_epi32(__m256i a, __mmask16 k, __m256i b);</p>
<p>VPMOVSXWD __m256i _mm256_maskz_cvtepi16_epi32(__mmask16 k, __m256i a);</p>
<p>VPMOVSXWQ __m256i _mm256_cvtepi16_epi64(__m256i a);</p>
<p>VPMOVSXWQ __m256i _mm256_mask_cvtepi16_epi64(__m256i a, __mmask8 k, __m256i b);</p>
<p>VPMOVSXWQ __m256i _mm256_maskz_cvtepi16_epi64( __mmask8 k, __m256i a);</p>
<p>VPMOVSXBW __m128i  _mm_mask_cvtepi8_epi16(__m128i a, __mmask8 k, __m128i b);</p>
<p>VPMOVSXBW __m128i _mm_maskz_cvtepi8_epi16( __mmask8 k, __m128i b);</p>
<p>VPMOVSXBD __m128i _mm_mask_cvtepi8_epi32(__m128i a, __mmask8 k, __m128i b);</p>
<p>VPMOVSXBD __m128i _mm_maskz_cvtepi8_epi32( __mmask8 k, __m128i b);</p>
<p>VPMOVSXBQ __m128i _mm_mask_cvtepi8_epi64(__m128i a, __mmask8 k, __m128i b);</p>
<p>VPMOVSXBQ __m128i _mm_maskz_cvtepi8_epi64( __mmask8 k, __m128i a);</p>
<p>VPMOVSXDQ __m128i _mm_mask_cvtepi32_epi64(__m128i a, __mmask8 k, __m128i b);</p>
<p>VPMOVSXDQ __m128i _mm_maskz_cvtepi32_epi64( __mmask8 k, __m128i a);</p>
<p>VPMOVSXWD __m128i _mm_mask_cvtepi16_epi32(__m128i a, __mmask16 k, __m128i b);</p>
<p>VPMOVSXWD __m128i _mm_maskz_cvtepi16_epi32(__mmask16 k, __m128i a);</p>
<p>VPMOVSXWQ __m128i _mm_mask_cvtepi16_epi64(__m128i a, __mmask8 k, __m128i b);</p>
<p>VPMOVSXWQ __m128i _mm_maskz_cvtepi16_epi64( __mmask8 k, __m128i a);</p>
<p>PMOVSXBW __m128i _mm_ cvtepi8_epi16 ( __m128i a);</p>
<p>PMOVSXBD __m128i _mm_ cvtepi8_epi32 ( __m128i a);</p>
<p>PMOVSXBQ __m128i _mm_ cvtepi8_epi64 ( __m128i a);</p>
<p>PMOVSXWD __m128i _mm_ cvtepi16_epi32 ( __m128i a);</p>
<p>PMOVSXWQ __m128i _mm_ cvtepi16_epi64 ( __m128i a);</p>
<p>PMOVSXDQ __m128i _mm_ cvtepi32_epi64 ( __m128i a);</p>
<p><strong>SIMD Floating-Point Exceptions</strong></p>
<p>None</p>
<p><strong>Other Exceptions</strong></p>
<p>Non-EVEX-encoded instruction, see Exceptions Type 5.</p>
<table>
<tr>
<td>EVEX-encoded instruction, see Exceptions Type E5.</td></tr>
<tr>
<td>If VEX.vvvv != 1111B, or EVEX.vvvv != 1111B.</td></tr></table></body></html>